package com.kong.provider1.controller;

import com.kong.consulapi.vo.BaseGenericOutputDTO;
import com.kong.consulapi.vo.BaseOutputDTO;
import com.kong.provider1.service.TransferServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * @author gedachao
 * @description
 * @date 2020-08-08 15:56
 */
@RestController
@RequestMapping("/test")
public class DemoController {
    @Autowired
    TransferServiceImpl service;

    @PostMapping("/hello")
    public String test1() {
        return "hello,world!";
    }


    @GetMapping("/getList")
    public BaseOutputDTO returnTest() {
        return service.getList();
    }

    @GetMapping("/getGenericList")
    public BaseGenericOutputDTO genericTest() {
        return service.getGenericList();
    }
}
